Prevent whitespace characters in metrics