changed to use rstrip and no longer try for int