Add trailing whitespace functions
Fix a mistake