Strip trailing whitespace
Remove unnecessary ternary