Takes in a string of 'x'