Editted a test case to check for correctness
Added trim() to param