Question: I want to find if the userinput has 6 characters and if it has a space in position 4 or i guess 5 if it stars counting from zero. Im new to java script and think I'm over thinking it please help!

Answer: 
However your question is not much clear to me at 'or i guess 5 if it starts counting from zero' but as much as I understood from your question the answer is as follow:

```
// get the user input through it id or whatever 
// CSS selector you are using
var userInput = document.querySelector('#user_input');

// on whatever event you are doing this check
// insert the following code to its handler
if (userInput.value.length === 6 && userInput.value[3] === " ") {
  // your check is true here and do whatever you want
  // return false
}

```
The following function takes the input, then it verifies that it's a string obj so you can properly handle it and performs the check you need.

```
function _check_me( _input_obj )
{
    if ( typeof _input_obj  == "string" || _input_obj  instanceof String )
    {
         return ( _input_obj.length == 6 && ( _input_obj.charAt(4) == " " || _input_obj.charAt(5) == " " ) ) ? 1 : 0 ;

    }
    else return 0 ;
}

```

Hence you can use it, as exampled below:

```
var _obj1 = "abcdef"; // returns false
var _obj2 = "abcd f"; // returns true
var _obj3 = "abc ef"; // returns true

document.write( _obj1 + " : " + _check_me( _obj1 ) + "<br>" ) ;
document.write( _obj2 + " : " + _check_me( _obj2 ) + "<br>" ) ;
document.write( _obj3 + " : " + _check_me( _obj3 ) + "<br>" ) ;

```

Hope it helps and happy coding !