FIX: support noCollapsePrefix as an array of strings