Fix issue #31 (introduced in previous commit about issue #17 which could also fail if more than one space were added between 'function' and its optional name)