solution: zigzag -> str process