parse: better space handling
add while loop