hasPrefix: instead of hasSuffix: in endOfLine