Variable substitution now also checks public variables
Variable substitution now also checks public variables

Also fixed a bug where only the first variable token in the string was
being replaced.

Nilihum/fungus,FungusGames/Fungus,snozbot/fungus,RonanPearce/Fungus,lealeelu/Fungus,kdoore/Fungus,inarizushi/Fungus,tapiralec/Fungus