fix StringBuffer new API