make sure aligned strings are of correct (reference) length