modal input normalization