Adopt Function#name regular expression to accommodate different scenarios of white-spaces.