Added size argument for string output functions