Merge "Return empty string for trail/prefix if disabled"