Relationship help

Do a couple months ago I met this guy and we hit it off. We aren’t dating yet but we eventually will be, so yesterday I found out that he was sexting another girl for a couple days. He told me that his friends made him do it and he apologized a lot. But now I just feel like I can’t trust him and I don’t know what to do I’m kinda broken. Can someone help me?