Removed commas and other characters if ally or enemy is not present