semantic: Handle $ replacement.