diff --git a/src/llm.py b/src/llm.py index 70937f9..685fe29 100644 --- a/src/llm.py +++ b/src/llm.py @@ -118,14 +118,8 @@ def handle_plural_values(self, plural_value): print( f"\t[LOG]: Formating plural values for JSON, [For input {plural_value}]..." ) - values = plural_value.split(";") - - # Remove trailing leading whitespace - for i in range(len(values)): - current = i + 1 - if current < len(values): - clean_value = values[current].lstrip() - values[current] = clean_value + # Split and strip whitespace from all values + values = [v.strip() for v in plural_value.split(";")] print(f"\t[LOG]: Resulting formatted list of values: {values}")