 			}
 		}
 	}
-
+	
 	func checkChar(char: Character) -> String.Index {
 		switch char {
 		case "+", "*", "%", "^", "&", ">", "|", "=":

			range.startIndex = target
		}
	}

	func checkCursorEnd() {
		if strIndex >= range.endIndex {
			checkCursor = nil

		case ",":
			retString += ", "
			return string.nextNonSpaceIndex(strIndex.successor())
		case "{", "[", "(":
			indentStack.append(indent)
			indent += tempIndent + 1
			if inSwitch {
				switchCount += 1
			}
			if char == "{" {
				keepSpace()
				retString += "{ "
				return strIndex.successor()
			} else {
				return append(char)
			}
		case "}", "]", ")":
			indent = indentStack.popLast() ?? 0
			if inSwitch {
				switchCount -= 1
				if switchCount == 0 {
					inSwitch = false
				}
			}
			
			if char == "}" {
				trimWithIndent()//TODO change to newline check
				keepSpace()
				retString += "} "
				return strIndex.successor()
			} else {
				return append(char)
			}
		default:
			break
		}
		return checkDefault(char)
	}
	
	func checkDefault(char: Character) -> String.Index {
		append(char)
		while strIndex < string.endIndex {
