Added function to extract value from info string