Fixed substring misuse.