How do I force a space after first character as user types. I just need only one space after first character (no spaces allowed before first one). After first character and space there can be upto 40 characters.

I found this so far, but does not fit my needs

```
$('.singleSpace').keyup(function() {
  var foo = $(this).val().split(" ").join(""); // remove hyphens
  if (foo.length > 0) {
    foo = foo.match(new RegExp('.{1}', 'g')).join(" ");
  }
  $(this).val(foo);
});

```

[sample](http://jsfiddle.net/S3gJL/ "Example")