Refactor pointer functions to evaluation functions

Instead of constraining the pointer function to the evaluation function
to have a string as an input, it expects a void pointer instead.