removing chars using boolean array for ascii