Added function to convert special string to intended data type