string.replaceAll interpretation, opt == None check, some lint