test if string composed from another