function ignore_spaces(string)
{
    var temp1 = "";
    var temp2 = "";
    string = '' + string;
    splitstring = string.split(" ");
    for (i = 0; i < splitstring.length; i++) {
        temp1 += splitstring[i];
    }
    temp2 = temp1.toLowerCase();
    return temp2;
}
