String delete

Explanation
This function deletes a part of str and returns the result. The first position has an index of 1. When count is larger than the length of the string only the part until the end is deleted.

Examples
var text1, text2; text1 = string_delete("ABCDEFGHIJKLMNOPQRSTUVWXYZ",1,7); text2 = string_delete("ABCDEFGHIJKLMNOPQRSTUVWXYZ",22,7);

Returns in text1 the string "HIJKLMNOPQRSTUVWXYZ" and in text2 the string "ABCDEFGHIJKLMNOPQRSTU".