Thanks for all the positive responses

@ Vadim:
I think Germanunkol meant converting string into the working function.

If anyone is interested i can publish the source code