Added transform function for string to int