adding the number of character sent int the put string method.