Ensure order of imported modules
Fix incorrect use of StringRef in return value