str => int