API: Remove leading/trailing spaces from error and description text

Change-Id: Id866c7258a297fe965a64d52e3458d53e140aa4c
Merge "API: Remove leading/trailing spaces from error and description text"