parser: changed get string to create new token

modified get string function to create new token and return a token
pointer (shared pointer) only when a valid token is found else a default
token pointer is returned; changed building of string from setting
characters to appending characters

changed call to get string function in function operator function
added string constant token constructor
removed set string character token function