String to integer on wait