Ad
  • Default User Avatar

    This also will have some issues no? For example if I put "!!!" at the end it will return wrong string. Even with only "!" at the end or any single character for that matter, You forgot to put the character back, 'if(el.length > 1)' will simply skip the single character :)