don't create temporary object when converting from a String

use Boolean.pasrseBoolean instead of Boolean.valuseOf().booleanValue()
do not mix string concatenation with StringBuffer.append
do not use String(String) constructor
Merge pull request #184 from kofemann/fixes-for-upstream

Fixes for upstream