creating text parser for the functions