string class using new