Added a nullHandler function to deal with blank line input.