Write String Functionality