Normalize input and textarea values