Fixed bug when erronously only splitting keywords on space when lines should be split on any whitespace.
Thanks to NimZwei for pointing this out.