allow input to be a string