change feature representation replacing strings with integral values