How about making a version of expandStringByStringTable that returns the expanded string as Common::String?