Fixed a cast error in runTranslation.jsp
Fixed a typo in .substring method in several locations.
Merge branch 'hotfix/translation'