Make id partitioning for string similar to integer