I am trying to read a log file and match some string in each line. Right now, If the line doesn\'t have any matching string the program exits with an error because the length of