Add an if else statement and write the code.
int count;
if(int total string lenght<=count)
{
}
else
return string
Or .Net hase some built in string funstions like split() and all try them.
split() Method splits the sting accoring to spaces. If string contains only one word it will devide it into letters
example:- Split("ABC")== "A","B","C";;
example:- Split("My NAME IS") == "MY" , "NAME" ,"IS";;
Remeber Split() method always returns an array of strings.
HERE how to declare string[] stringarray=Split("MY NAME");