Basic normalizing of inputs