I would add a comment that this method accepts strings and non-compact lists and returns a compact list. Also no reason `lst` can't be `list`