added parsing function for unsigned ints

Added parsing function for extracting unsigned integers from strings.