Replace invalid characters instead of matching them and doing nothing else
Format and method sorting