starting algorigthm to seperate text from smiles