Added rtrim to message in processLine() so that ending return characters are removed