Refactoring StringContactSpanner.