remove patch from ruby string