* fix: added white space checks including newlines to ensure proper validation of trim method * fix: Addressing comments