import re
text = "upi xxxxxxxxxx manoj jayant xxx xxxxxxx532kvblhii"
print( " ".join([x for x in text.split() if x != len(x) * x[0] ]) )
print( re.sub(r'\s*\bx+\b', '', text).lstrip() )
aW1wb3J0IHJlCnRleHQgPSAidXBpIHh4eHh4eHh4eHggbWFub2ogamF5YW50IHh4eCB4eHh4eHh4NTMya3ZibGhpaSIKcHJpbnQoICIgIi5qb2luKFt4IGZvciB4IGluIHRleHQuc3BsaXQoKSBpZiB4ICE9IGxlbih4KSAqIHhbMF0gXSkgKQpwcmludCggcmUuc3ViKHInXHMqXGJ4K1xiJywgJycsIHRleHQpLmxzdHJpcCgpICk=