Strip spaces.
Fix Issue 12653 - Add documentation for the getFunctionAttributes trait.
Merge pull request #566 from AndrejMitrovic/Fix12653

Issue 12653 - Document the getFunctionAttributes trait.