fix parsing error

Real fix on line 131 + multiple whitespace truncating.