Added scrollString function and helper method.