I believe this is a T-Mobile issue that's been going on recently. It comes and goes, but I've tested it with an iPhone 5S, a Note 4, and a Moto X 2014 and they all have the same issue at some point during the past couple of weeks: Delayed texts (especially to/from iPhones), duplicate texts, split texts...