solution to s5 using split (through?)

not sure how this split is different from the String library split()
Fancy solution to s5 using ternary op

because the ternary op is fancy.