Exercise I4 - remove unprintable characters from a string

Given an input string, remove all characters that are not printable.