Added some functionality to String class.