Add try-catch clause due to expected numberformatexception