epicodus base converter: turns a string into a decimal integer per provided base number