Implemented string functions and regular expression engine