How to handle bundle identifiers with spaces?
A proper bundle identifier should not have a space in it. According to Apple's App Distribution Guide -> About Bundle IDs, a


  "...bundle ID string must be a uniform type identifier (UTI) that contains
  only alphanumeric characters (A-Z,a-z,0-9), hyphen (-), and period
  (.). The string should be in reverse-DNS format. For example, if your
  organization’s domain is Acme.com and you create an app named Hello,
  you could assign the string com.Acme.Hello as your app’s bundle ID.


So, technically, org.mozilla.tor browser is not a valid bundle identifier, so you'll get unexpected results when trying to work with it. It should likely be changed (by the developer) to something like org.mozilla.tor.browser or org.mozilla.tor-browser, etc.