Fix split() is deprecated error