Used native classes for working with strings instead of custom class.