writing split string to console