remove spaces and capitalize each word in getVarName