fix escaping of not necessary rm in strings