header
basic sol for splitting words and adding space at the end