Improved speed.

Changed some Strings to StringBuffer, to improve speed.