Replacing specified and default prefixes in result