Added option to ignore empty parts when doing strsplit.