Adding parenthesis not checking integer value