refactor(hintLog): review hintLog for stylistic issues

The previous hintLog iteration included verbose `if/else` statements
that were unnecessary for the intended results. Variable names such as `nameAndValue`
and `No name` were also unclear. This refactor cleans up the logic using ternary and
short circuit or. It also adds comments to explain this logic and renames unclear
variable names. Last it removes trailing white space in hintLog messages that
caused unexpected message style.

Closes #9