Trim terminating spaces when parsing last names.
Write status messages to stdout.