[enh][fix] support base_urls without language code ++ extra whitespaces removed