finding combinations of a string recursively