sanitize $lang variable