I think this elif is wrong. For example if store = "copy ", test above fails but this one passe since the length of the string is tested.