String class basic implementation