Changed deprecated 'put' for strings