Refs #9979 Trim line end whitespace.