[ruby] Remove substring from the string