a hook from a string