I tried this, but it results in some weird bugs that I assume are because string comparisons are done by comparing pointers somewhere.