replaced .split()[0] with .chr method