Generate strings correctly.