removed dependency on string math from several solutions