text: Else check if v is true or not . If true , copy character in output string and set v as false .
code: else if ( str [ i ] != ' ▁ ' && v == true ) { result . push_back ( str [ i ] ) ; v = false ; } } return result ; }