safety check for filteReddit (possible empty stringToSearch)

also some whitespace cleanup