Avoid skipping whitespaces in the middle of parsing record