added regex
very easy to get int from strings