Refactored string operations into string.js
Let's just use tables.