update the jquery to work with strings