Removed all tailing whitespaces in validation code