Updated Wrap Function to String.js