Trying to enter an argument with multiple words into a Views argument I'm using Organic Groups with Views in Drupal 7  with OG Tokens to create a view which returns all content with a type associated with it, so groups/foo/article would return all articles where the content type is article and the group is foo. This works fine for a group audience where the audience is one word, such as foo, or two run together without spaces, such as FooBar. However when I create a group like foo-bar, the view returns the no content page even when there is content attached the group. The contextual filter that I am using is OG Group: Label. 

I've tried putting PHP to explode the results in the 'WHEN THE FILTER VALUE IS IN THE URL OR A DEFAULT IS PROVIDED', following the posts that I've seen but although I can see it printing out the "foo bar", it is not calling the types attached to the group. Is there somewhere else that I can explode this data and remove the spaces so that the group details can be presented in the view, or even look at the query to see what is being passed into it by the argument?

Thanks for your help and time. 

UPDATE:
Having run a slightly orthogonal search, i came across the following code:

    $handler-&gt;argument = str_replace('_', ' ', $argument);
    return TRUE;


Having replaced the underscore with a dash, the multi-worded OG audience type can be used as I outlined above. Put the code into the "PHP Validate" code on the specify validation code and apply. The original came from PixelClever . I'll mark as answered when the site allows me to do so as I don't have enough user points to do so immediately.
If the arguments are not in a taxonomy term then add a vocabulary to contain them
Under the contextual filter section for When the filter value is in the URL check validation, set it to a Taxonomy term  and pick the vocabulary.
Select the Filter type or term name from the term ID
Check the box for Transform Dashes.


The view should now read the name from the URL and access the term id.