compare functions as strings