Strip signatures and trailing newlines from repl

I believe repl now works exactly like the old one did!