Refactoring: fixed some wxString parameters on methods which were not const references.

This also improves the speed (less memory management overhead). Also some methods are now const that weren't.