more concise version of string reflection