Added some comments.
Implemented question 4 - Replacing all space characteres by '%20'.