register string to both nullable & non-nullable type