removing text from ruby block