Cleaned up some unnecessary string casts that were leftover from PyQt stuff