Remove trailing '\n'