fix strip method if name is nil