Small update on the method used for input string processing to take into accout both Character lf and Character cr.