fixed string to int casting