If the to parameter is not specified, the end of the substring is the end of the string. If the value of from equals the value of to, the method returns an empty string. If the value of from is greater than the value of to, the parameters are automatically swapped before the function executes and the original value is unchanged.Method; returns a string consisting of the characters between the points specified by the from is the end of the string. If the value of from equals the value of to, the method returns an empty string. If the value of from is greater than the value of to the parameters are automatically swapped before the function executes and the original value is unchanged.Method; returns a string consisting of the characters between the points specified by the from parameters.