Remove bad fields before creation to allow for user mistakes

Trailing whitespace detected.