Added validations

Trailing whitespace detected.