Obtenez le premier mot d'une chaîne avant le flottement de l'espace

String value = 'The text is this';
value = value.split(' ').first; 
print(value)// output: The
Plain Puma