text: we are splitting the input based on spaces ( s ) + : this regular expression will handle scenarios where we have words separated by multiple spaces
code: char * p ; vector < string > s ; p = strtok ( input , " ▁ " ) ; while ( p != NULL ) { s . push_back ( p ) ; p = strtok ( NULL , " ▁ " ) ; } string charBuffer ; for ( string values : s )