Minor changes to CleanInput.m