filter based on chars input