Strip out package names to avoid parsing failure