Fixing convertion from String to boolean