Only trim global namespace if it is an exact prefix