Wrote String function.