Refactor trimming function and updated test in Basic Action Test to accept untrimmed values