bug in split function fixed, $this is now object not string