Use explode() in place of deprecated split() function