using static System.Console;
public static void Main() {
var texto = "kkkkkkkkkkkk jjjjjjjjjjj oloco icaro alguma coisa algumas palavras várias loucuras name:'icaro' lalala huhuasd sdiufhidf sdifuhisuhdf kkkkkkk";
WriteLine(StringPick(texto, "name:'", '\''));
WriteLine(StringPick(texto, "age:'", '\''));
WriteLine(StringPick(texto, "name:'", ','));
public static string StringPick(string text, string tag, char closing) {
int index = text.IndexOf(tag);
int start = index + tag.Length;
int end = text.IndexOf(closing, start + 1);
return index >= 0 ? text.Substring(start, (end >= 0 ? end : text.Length) - start) : "";