parse() end of input working