Added negative test cases and added code to check for the wrong operator
order
Added the character # as the empty string.