hasSuffix returns false if suffix is the whole string