Moved translation method to StringUtils