where and how is the script checking that .com/germany/ is ok and .com/germand/ is not could someone point me in the right direction ?

and wich variables use the script then ? $country_level1 $country_leve2 $country_level3 ?