Refactoring easingbystring.