Compare string elements according to locale