Updated the string format checker to pay attention to imports.