Add conditional trailing whitespace