Added new functionality to add a new Category.
Minor change to trim the whitespace on title variable.

Change-Id: If291ae3ec23bb37a69a42936ca8e52e80d57f786