Trim whitespace before parse.