change input pattern replace(/[jkl;JKL;uioprUIOPR]/,'') to slice(0,-1)
change LH input qwerasdf