removing string using first boolean