Hey,

How to make function which removes all unsafe charters, removes spaces, converts international letter to latin etc, and retuns only latin letters and numbers (alphasimbols)?

Also this function should reduce lenght of the string to n simbols.

ETC.:

dim str as string = "<*> Hello 10 people, how are you!? <*>"
str = myfunction(str, 8)

And then Str value is equl to = "he10phay"
If lengt of string is more then 8 after removing unsafe charters, it cuts some characters of every world until it's lengt is 8.

Any suggestions?

Maybe .NET has function which convers string to alpha string?