Refactored StringContactSpanner.