Added a string escape fn. Fixed mod. Made other math operations consistent