small version of geekstring3 using substr function