Move ifs code to shortcut isNotVariableAndString()