check for either symbols or strings in format hash