private static int getStringType(String text) {
		Expressions expressions = Calculator.expressions;
		
		boolean isFunction = expressions.matchesFunction(text); 
		if(isFunction) {
			return TOKEN_FUNCTION;
		}
		
		boolean isNumberLiteral = expressions.matchesNumber(text);
		if(isNumberLiteral) {
			return TOKEN_NUMBER_LITERAL;
		}
		
		boolean isOperator = expressions.matchesOperator(text);
		if(isOperator) {
			return TOKEN_OPERATOR;
		}
		
		boolean isOpenBracket = text.equals("(");
		if(isOpenBracket) {
			return TOKEN_OPEN_BRACKET;
		}
		
		boolean isClosedBracket = text.equals(")");
		if(isClosedBracket) {
			return TOKEN_CLOSE_BRACKET;
		}
		
		boolean isArgumentSperator = text.equals(",");
		if(isArgumentSperator) {
			return TOKEN_ARGUMENT_SEPERATOR;
		}
		
		String numberRegexp = "\\d*(\\.\\d*)?";
		boolean isNumber = text.matches(numberRegexp);
		if(isNumber) {
			return TOKEN_NUMBER;
		}
		
		return TOKEN_VARIABLE;
	}