String class implementation