@minar09 lastly your code was keeping whitespaces before and after white spaces which I was striping in editing test case that's why I have gone to your function and add some codes. Think it's okay.
This issue removes the whitespace in a test steps before and after related to git issue #168