Modified string class