Added to handle cases where the percent var is a String representation of an int.