Handling soft hyphens in tests