Replaced StringBuffers usage with StringBuilders because the library is not thread-safe anyway