Some string usage refactoring.

It is very bad idea to concatenate strings via '+'. Worst places are refactored.
ThreadSafe output
Some other trifles.
Merge pull request #19 from DMak80/master

Some string usage refactoring.