extract string/ident parsing so we don't need to invoke full expression parsing machinery when parsing imports