Added a constructor to the string class.