Preserve trailing new line in REPL