strip initial whitespace when registering functions