Remember to strip trailing newlines.