Remove regex method from ValuedHeapNode. Update existing tests for new architecture.