Replaced obsolete split() with char(strsplit())