Added string operations to data structures.

Added the ability to read from and write to string.
Also added the trim function to Utils; it removes any leading or
trailing whitespaces.