Added new functions: hasPrefix() and hasSuffix()