Fixing packages in strings