Trim whitespace before parse