get rid of blind substring