Fixed error in the toRowKey methods to return String