testing for loop for characters