Implementation of add is now working for arbitrary strings with space as delimeter.