Thanks Jooel for the bitwise code and thanks Shawn for the space in the name, that was the final key.

Code now works as suggested by Jooel and removing the space as suggested by Shawn.

Thanks again guys.