#---------- equivalent expression----------# string.join(map(string.capitalize,string.split(s))