Jquery Get Last Character Of String Java