Input PreProcessing