match on any or no whitespace after graph name