jquery replace character in string at position