If you want to monitor the string, you can generate a hash of the string and extract only the numeric part to map the string to a numeric value.
If you want to store the value, you can upload the string to TXT record in Route 53