Add trim functions.
Remove a test having a trailing new line.