Doing some exer for Prototype's string.js