Yes, I only saw your idea with the global string after I posted the first response. You can handle backspaces with inkey the same way as with inchar. You just need to check the return value of the function.