added check for ascii only