Fix character length differences

simplified version using system line separator for line breaks