fixed string localization bug - more sanity checks