Replaced a hard-coded carriage return character with a method call