device multireplace trim whitespaces before and after