Initialize variable when using sanitizing method