Try-catch instead of ignore the characters