adding trailing whitespace handling options