Check types using string functions and append a string to show the type
change key of dict to an integer with the number of variable parts in url