Remove hardcoding for ascii codes