Modifies reducer if statements, as Hadoop does not sort by more than the first word of output