Do you want to say split[split.length -1] here ? imagine if a site is called site(1). I think it could be site(1)(staging)