The question is self explanatory. Could you please point out a way to put spaces between each capital letter of a string.

```
SELECT dbo.SpaceBeforeCap('ThisIsATestString')

```

would result in

```
This Is A Test String.

```