string manipulation i/o and proper orientation order | open.mp community