Less repetition
Convert str to list if needed