added max buffer size for string