Refactor 'multiply strings'.