Added L for lowercase and U for uppercase masks