refactor checkChar args