processing and spliting strings in mbox to bow