Using extension to read string values safely.