Replaced StringBuffer with StringBuilder