Making sure that offset is a string