How can I convert from type GUI String to String?