Convert level string o corresponding level number