more cvar work, added a misc string function thing