use StringBuilder instead of StringBuffer for local variables

StringBuffer is synchronized collection and local variables are by definition
thread safe there's no need to use synchronized collections
remove unused method