Fixed some oddness with what is considered the last word in a line