remove trailing char & newline