find number of characters in a string jquery