take substr of all language codes