string split in cpp, a really simple function