Normalizes script and style names