mad code to trim tweets