Modern iOS support.
Changed StringBuffer to StringBuilder