implemented chr

implemented chr